package com.wsj.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.wsj.util.page.PageResultSet;
import com.wsj.web.vo.homeSite.MagazineName;

public interface IMagazineNameDao {

	public void add(MagazineName magazineName) throws DataAccessException ;
	
	public void delete(MagazineName magazineName) throws DataAccessException ;
	
	public void update(MagazineName magazineName) throws DataAccessException ;
	
	public MagazineName loadById(Integer id) throws DataAccessException ;
	
	public MagazineName loadByName(String name) throws DataAccessException;
	
	public List<MagazineName> loadAll() throws DataAccessException ;
	
	public List<MagazineName> loadByTime(Integer top) throws DataAccessException ;

	public PageResultSet loadPageList(String name,String jj,Short isCommend, Short iskd,String beginDate,String endDate,Integer page,Integer pageSize) throws DataAccessException;

	public List loadMagazineNameByInputtime(String year)throws DataAccessException ;

	/*****
	 * 通过杂志名id,获取最近的8个杂志名
	 * @param magazineNameId
	 * @return
	 * @throws DataAccessException
	 */
	public List<MagazineName> loadLastMagazineNameListByIdDao(Integer magazineNameId)throws DataAccessException ;
 
	/*****
	 * 获取最新的杂志名id
	 * @return
	 * @throws DataAccessException
	 */
	public Integer loadMagazineLastIdDao()throws DataAccessException ;

	public List getMagazineClassListByParentId(Integer magazineNameid)throws DataAccessException ;
	
}
